<template>
  <div class="bg-white shadow rounded-lg mb-4">
    <div v-if="title" class="flex flex-row font-bold p-2 border-b">
      <p>{{ title }}</p>
    </div>
    <slot name="header" />
    <div class="py-1">
      <slot name="container" />
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: null,
    },
  },
};
</script>
